/**
 * Created by wanghuan on 2016/7/21.
 */
import Vue from 'vue'
import Vuex from 'vuex'

import timeCard from './modules/time/timeCard'
import breaks from './modules/time/break'
import timeReport from './modules/time/timeReport'
import whoIsWorking from './modules/time/whoIsWorking'
import pto from './modules/time/pto'
import schedule from './modules/time/schedule'
import companyTimeSetting from './modules/time/companySetting'
import timesheet from './modules/time/timesheet'
import manual from './modules/time/manualTimeCard'


import company from './modules/org/company'
import employee from './modules/org/employee'
import header from './modules/common/header'
import home from './modules/common/home'

import payRollPay from './modules/payroll/pay'
import payRollHeader from './modules/payroll/header'
import payRollEmployee from './modules/payroll/employee'
import payRollPayInfo from './modules/payroll/payInfo'
import payRollPayRoll from './modules/payroll/payRoll'

const debug = process.env.NODE_ENV !== 'production'
Vue.use(Vuex);
Vue.config.debug = debug;

export default new Vuex.Store({
  modules: {
    header,
    home,
    timeCard,
    breaks,
    timeReport,
    whoIsWorking,
    pto,
    schedule,
    timesheet,
    companyTimeSetting,
    manual,

    employee,
    company,
    /*payroll*/
    payRollPay,
    payRollEmployee,
    payRollPayInfo,
    payRollPayRoll
  },
  strict: debug,
})
